home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / bbs / fcfgw40s.zip / PROGDLG.H < prev    next >
C/C++ Source or Header  |  1996-04-19  |  2KB  |  66 lines

  1. // ProgDlg.h : header file
  2. // CG: This file was added by the Progress Dialog component
  3.  
  4. /////////////////////////////////////////////////////////////////////////////
  5. // CProgressDlg dialog
  6.  
  7. #ifndef __PROGDLG_H__
  8. #define __PROGDLG_H__
  9.  
  10. class CProgressDlg : public CDialog
  11. {
  12. // Construction / Destruction
  13. public:
  14.     CProgressDlg(UINT nCaptionID = 0);   // standard constructor
  15.     ~CProgressDlg();
  16.  
  17.     BOOL Create(CWnd *pParent=NULL);
  18.  
  19.     // Progress Dialog manipulation
  20.     void SetStatus(LPCTSTR lpszMessage);
  21.     void SetRange(int nLower,int nUpper);
  22.     int  SetStep(int nStep);
  23.     int  SetPos(int nPos);
  24.     int  OffsetPos(int nPos);
  25.     int  StepIt();
  26.         
  27. // Dialog Data
  28.     //{{AFX_DATA(CProgressDlg)
  29.     enum { IDD = CG_IDD_PROGRESS };
  30.     CAnimateCtrl    m_Animation;
  31.     CProgressCtrl    m_Progress;
  32.     //}}AFX_DATA
  33.  
  34. // Overrides
  35.     // ClassWizard generated virtual function overrides
  36.     //{{AFX_VIRTUAL(CProgressDlg)
  37.     public:
  38.     virtual BOOL DestroyWindow();
  39.     protected:
  40.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  41.     //}}AFX_VIRTUAL
  42.  
  43. // Implementation
  44. protected:
  45.     UINT m_nCaptionID;
  46.     int m_nLower;
  47.     int m_nUpper;
  48.     int m_nStep;
  49.     BOOL m_bParentDisabled;
  50.  
  51.     void ReEnableParent();
  52.  
  53.     virtual void OnCancel();
  54.     virtual void OnOK() {}; 
  55.     void UpdatePercent(int nCurrent);
  56.     void PumpMessages();
  57.  
  58.     // Generated message map functions
  59.     //{{AFX_MSG(CProgressDlg)
  60.     virtual BOOL OnInitDialog();
  61.     //}}AFX_MSG
  62.     DECLARE_MESSAGE_MAP()
  63. };
  64.  
  65. #endif // __PROGDLG_H__
  66.